package thread.mianshi.redPacket;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by sunjian on 2018/7/12.
 */
public class RobRedPacketThread extends Thread {


    private String threadName;

    public void setThreadName(String name) {
        this.threadName = name;
    }

    public String getThreadName() {
        return threadName;
    }

    public static List<RobRedPacketThread> peoples = new ArrayList<RobRedPacketThread>(128);


    static {
        for (int i = 0;i<5;i++){
            RobRedPacketThread robRedPacket = new RobRedPacketThread();
            robRedPacket.setThreadName("用户"+i);
            peoples.add(robRedPacket);
        }
    }

    @Override
    public void run() {
        RobRedPacketHandler.RobRedPacket(this);
    }


}
